class Permission < ActiveRecord::Base
  belongs_to :user
  
  def level_name()
    d = { 1 => :global,
          2 => :site,
          3 => :group,
          4 => :self }
    return d[self.level]
  end
end
